<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 导入layui.css -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 导入 user-info .css -->
    <link rel="stylesheet" href="/assets/css/user/user-pwd.css">
</head>
<body>
    <div class="layui-card">
        <div class="layui-card-header">修改密码</div>
        <form id="" class="layui-form" action="" lay-filter="formUserInfo"> <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
            <!--1. 原密码 -->
            <div class="layui-form-item">
                <label class="layui-form-label">原&emsp;密&emsp;码</label>
                <div class="layui-input-block">
                  <input type="text" name="oldPwd" required  lay-verify="required|pwd" placeholder="请输入原密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!-- 2. 新密码  -->
            <div class="layui-form-item">
                <label class="layui-form-label">新&emsp;密&emsp;码</label>
                <div class="layui-input-block">
                  <input type="text" name="newPwd" required  lay-verify="required|pwd|newPwd" placeholder="请输入新的密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!-- 3. 确认新密码  -->
            <div class="layui-form-item">
                <label class="layui-form-label">确认新密码</label>
                <div class="layui-input-block">
                  <input type="text" name="renewPwd" required  lay-verify="required|pwd|rePwd" placeholder="请再次输入密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!-- 4. 修改按钮  -->
            <div class="layui-form-item">
                <div class="layui-input-block">
                  <button class="layui-btn" lay-submit lay-filter="formDemo">立即修改</button>
                  <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div> 
        </form>
    </div>

    <!-- 导入jq -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 导入axios -->
    <script src="/assets/lib/axios.js"></script>
    <!-- 导入js -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 导入common.js -->
    <script src="/assets/js/common.js"></script>
    <!-- 导入当前js -->
    <script src="/assets/js/user/user-pwd.js"></script>
</body>
</html>